package com.amigo.online.provider.user.figen;

import com.alibaba.fastjson.JSONObject;
import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.core.response.Result;
import com.amigo.online.common.param.dto.PushMessageDto;
import com.amigo.online.common.param.dto.adv.AdvNearbyDto;
import com.amigo.online.common.param.dto.adv.AdvTantanDto;
import com.amigo.online.common.param.dto.group.AddGroupMemberDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "AMIGO-ONLINE-MESSAGE")
public interface MessageFeignService {
    /**
     * 邀请用户进群
     * @return
     */
    @PostMapping(value = "/group/invitation")
    public Result invitation(AddGroupMemberDto addGroupMemberDto);
    @PostMapping(value = "/group/quitGroup")
    public Result quitGroup(Long groupId);

    @RequestMapping(value = "/v1/adv/list/nearby", method = RequestMethod.POST)
    public ResponseEntity<Response> getNearbyVideoInfo(@RequestBody AdvNearbyDto advNearbyDto);


    @PostMapping(value = "/notice/pushByOneSignalId")
    public Result pushByOneSignalId(PushMessageDto pushMessageDto);

}
